package com.yuju.hotel.dao.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.yuju.common.core.dao.AbstractBaseDao;
import com.yuju.hotel.dao.IRoomDao;
import com.yuju.hotel.dao.entity.Room;
import com.yuju.hotel.dao.mapper.RoomMapper;
import com.yuju.hotel.model.RoomModel;
import com.yuju.persist.base.mapper.BaseMapper;
/**
 * 
 * 类名：RoomDaoImpl  <br />
 *
 * 功能：
 *
 * @author : zhousc <br />
 * @Date : 2017年11月27日 下午3:22:43  <br />
 * @version : 1.1 <br />
 */
@Repository
public class RoomDaoImpl  extends AbstractBaseDao<RoomModel, Room, String> implements IRoomDao{
	@Autowired
	private RoomMapper roomMapper;
	
	@Override
	public BaseMapper<Room, String> getMapper() {
		// TODO Auto-generated method stub
		return roomMapper;
	}

	@Override
	public List<Room> selectRoomByRoomType(RoomModel roomModel) {
		// TODO Auto-generated method stub
		return roomMapper.selectRoomByRoomType(roomModel);
	}

	@Override
	public int updateByIds(RoomModel roomModel){
		return roomMapper.updateByIds(roomModel);
	}
}
